import 'package:flutter/material.dart';

class Search extends StatefulWidget {
  Search({Key key}) : super(key: key);

  @override
  _SearchState createState() => _SearchState();
}

class _SearchState extends State<Search> {
  @override
  Widget build(BuildContext context) {
    return Column(
      children: [
        RaisedButton(
          child: Text('这个是发现页面'),
          onPressed: () {
            //命名路由
            Navigator.pushNamed(context, '/searches',
                //传值
                arguments: {
                  'id': 123,
                });
          },
        ),
      ],
    );
  }
}
